<div class="site-title">
    <fieldset>
        <legend><a>${title}</a></legend>
    </fieldset>
</div>
<div class="layui-row" style="margin-top: 32px">
    <div class="layui-form">
        <input id="address-id" type="hidden" value="<#if isEdit>${vo.id}<#else>0</#if>">
        <input id="display_address" type="hidden" value="<#if isEdit>${vo.displayAddress?c}<#else>false</#if>">
        <div class="layui-form-item">
            <label class="layui-form-label">播放致辞</label>
            <div class="layui-input-block">
                <input type="checkbox" lay-skin="switch" lay-text="开启|关闭" lay-filter="display_address"
                       <#if isEdit><#if vo.displayAddress>checked</#if></#if>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">欢迎文字</label>
            <div class="layui-input-block">
                <textarea id="text" name="desc" placeholder="请输入内容"
                          class="layui-textarea"><#if isEdit>${vo.text}</#if></textarea>
            </div>
        </div>

        <div class="layui-form-item" id="imageUploaderContainer">
            <div class="layui-col-md1">
                <label class="layui-form-label">图片上传</label>
            </div>
            <div class="layui-col-md9 upload-content">
                <div class="content-img">
                    <ul class="content-img-list">
                        <#if isEdit>
                            <#if vo.pictures??>
                                <#list vo.pictures as picture>
                                    <li class="content-img-list-item"><img src="/images/${picture}"
                                                                           alt=""><a index="${picture_index}"
                                                                                     class="delete-btn layui-hide"><i
                                                    class="layui-icon layui-icon-delete"></i></a>
                                    </li>
                                </#list>
                            </#if>
                        </#if>
                    </ul>
                    <div class="file">
                        <i class="layui-icon layui-icon-add-1"></i>上传图片，支持jpg/png<input type="file" name="file"
                                                                                        accept="image/*"
                                                                                        id="imageUploader">
                    </div>
                </div>
                <div class="upload-tips">
                    图片大小限制5M
                </div>
            </div>
        </div>

        <div class="layui-row">
            <div class="layui-input-block layui-col-md8">
                <button class="layui-btn" id="submit-btn">提交</button>
            </div>
        </div>
    </div>

</div>
